FROM python:3.8-rc-alpine3.9

VOLUME /work
WORKDIR /work
COPY code .

RUN echo -e http://mirrors.ustc.edu.cn/alpine/v3.9/main/ > /etc/apk/repositories

RUN apk update && apk upgrade && apk add bash && pip3 install -r requirements.txt -i https://pypi.mirrors.ustc.edu.cn/simple

EXPOSE 80
CMD python3 run.py